<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>订单列表</title>
</head>
<body>
    <div>
        <ol >
            <li th:each="order:${orderList}">
                <span>订单编号：</span><span th:text="${order.id}"></span>&nbsp;
                <span>订单状态：</span>
                    <span th:switch="${order.state}">
                        <span th:case="0">未支付</span>
                        <span th:case="1">已支付</span>
                        <span th:case="2">已取消</span>
                    </span>
            </li>
        </ol>
    </div>
</body>
</html>